home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 October / Macformat17.cdr / Shareware in MacFormat / synchronize-311 / Synchronize! / Synchronize!.rsrc / TEXT_20059_AppleScript Support.txt < prev    next >
Text File  |  1994-07-11  |  1KB  |  25 lines

  1. Synchronize! can be controlled with AppleScript. Synchronization documents can be opened and synchronization started with simple script commands.
  2.  
  3. Settings within synchronization documents, and preferences, cannot currently be changed with AppleScript. Synchronize! responds to AppleScript commands, but it is not recordable.
  4.  
  5. The following scripting examples show what you can do with Synchronize! and AppleScript. The text which follows can be entered directly as a script.
  6.  
  7. -- Open Synchronize!, just as if it were double-clicked.
  8. tell application "Synchronize!" to run 
  9.  
  10. tell application "Synchronize!"
  11.     -- Open a synchronization document
  12.     open file "Sync PowerBook" 
  13.     -- If the Start Option "Start synchronization when the
  14.     -- document is opened" is checked,
  15.     -- the synchronization will be automatically started.
  16.  
  17.     -- Start a synchronization
  18.     sync file "HD:Sync Big Disk" 
  19.     -- Synchronize! will automatically open the 
  20.     -- specified document (if it's not already open)
  21.     -- and start its synchronization
  22.     
  23.     -- Quit Synchronize!
  24.     quit
  25. end tell